package hd.cls2;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileOutputStreamTest {
    public static void main(String[] args) {
        try {
            InputStream in=new FileInputStream("d:/test.txt");
            int ch;
            while ((ch=in.read())!=-1){
                System.out.print(ch);
                System.out.print(" ");
            }
            in.close();
        } catch ( Exception e) {
            e.printStackTrace();
        }
    }
}
